package com.yumao.recyclerview;

import android.widget.Toast;

/**
 * Created by Administrator on 2017/3/1.
 */

public class T {
    private static Toast t;

    public static void showToast(String text) {
        if (t == null) {
            t = Toast.makeText(App.getAppContext(), text, Toast.LENGTH_SHORT);
        } else {
            t.setText(text);
        }
        t.show();
    }
}
